#! /bin/sh
baseroot=$(cd `dirname $0`; pwd)
NDK_PATH=$ANDROID_NDK_ROOT
ANDROID_API=23
NDK_PLATFORM=android-$ANDROID_API
PLATFORM_PREFIX=$baseroot/toolchain
export PATH=$PLATFORM_PREFIX/bin:$PATH
export CC=arm-linux-androideabi-gcc
export CXX=arm-linux-androideabi-g++
export CXXFLAGS="-lstdc++"
export LDFLAGS="-pie -fPIE"
export CFLAGS='-march=armv7-a -mfloat-abi=softfp -pie -fPIE -D__ANDROID_API__=$ANDROID_API -DANDROID=ON'
export LC_COLLATE='C'
export LC_CTYPE='C'